<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 得到7天以后的时间
        console.log("1",new Date().setDate(new Date().getDate()+7));


        // 得到7天以后的时间
        new Date("2022-10-1 8:00:00")
        new Date(2022,9,1,8,0,0,0)
        new Date(Date.now()+1000*60*60*24*7)
    </script>
</body>
</html>